import { getHttpPost } from "../tokens/http";

export interface ILoginData {
    username: string;
    password: string;
    device_uuid: string;
    device_name: string;
}
export const login = async (data: ILoginData) => {
    try {
        const httpPost = getHttpPost()
        const res = await httpPost('login', data)
        return res;
    } catch (e) {
        throw e;
    }
}